package dailytest;

import com.google.common.collect.Lists;

import java.util.List;
import java.util.stream.Collectors;

/**
 * @author: heweiwei
 * @Date: 2022/12/14 16:23
 * @Desc:
 */
public class StopWatchTest {
    public static void main(String[] args) {

        List<Integer> list = Lists.newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21);
        List<Integer> collect = list.stream().skip(0 * 2)
                .limit(2)
                .collect(Collectors.toList());
        System.out.println("collect = " + collect);

    }

}
